package com.ruoyi.slope.ai.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.ai.mapper.SlopeAiHljSlopeMonitoringMapper;
import com.ruoyi.slope.ai.domain.SlopeAiHljSlopeMonitoring;
import com.ruoyi.slope.ai.service.ISlopeAiHljSlopeMonitoringService;

/**
 * 黑龙江省公路边坡崩塌落石监控Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
@Service
public class SlopeAiHljSlopeMonitoringServiceImpl implements ISlopeAiHljSlopeMonitoringService 
{
    @Autowired
    private SlopeAiHljSlopeMonitoringMapper slopeAiHljSlopeMonitoringMapper;

    /**
     * 查询黑龙江省公路边坡崩塌落石监控
     * 
     * @param id 黑龙江省公路边坡崩塌落石监控主键
     * @return 黑龙江省公路边坡崩塌落石监控
     */
    @Override
    public SlopeAiHljSlopeMonitoring selectSlopeAiHljSlopeMonitoringById(Long id)
    {
        return slopeAiHljSlopeMonitoringMapper.selectSlopeAiHljSlopeMonitoringById(id);
    }

    /**
     * 查询黑龙江省公路边坡崩塌落石监控列表
     * 
     * @param slopeAiHljSlopeMonitoring 黑龙江省公路边坡崩塌落石监控
     * @return 黑龙江省公路边坡崩塌落石监控
     */
    @Override
    public List<SlopeAiHljSlopeMonitoring> selectSlopeAiHljSlopeMonitoringList(SlopeAiHljSlopeMonitoring slopeAiHljSlopeMonitoring)
    {
        return slopeAiHljSlopeMonitoringMapper.selectSlopeAiHljSlopeMonitoringList(slopeAiHljSlopeMonitoring);
    }

    /**
     * 新增黑龙江省公路边坡崩塌落石监控
     * 
     * @param slopeAiHljSlopeMonitoring 黑龙江省公路边坡崩塌落石监控
     * @return 结果
     */
    @Override
    public int insertSlopeAiHljSlopeMonitoring(SlopeAiHljSlopeMonitoring slopeAiHljSlopeMonitoring)
    {
        slopeAiHljSlopeMonitoring.setCreateTime(DateUtils.getNowDate());
        return slopeAiHljSlopeMonitoringMapper.insertSlopeAiHljSlopeMonitoring(slopeAiHljSlopeMonitoring);
    }

    /**
     * 修改黑龙江省公路边坡崩塌落石监控
     * 
     * @param slopeAiHljSlopeMonitoring 黑龙江省公路边坡崩塌落石监控
     * @return 结果
     */
    @Override
    public int updateSlopeAiHljSlopeMonitoring(SlopeAiHljSlopeMonitoring slopeAiHljSlopeMonitoring)
    {
        slopeAiHljSlopeMonitoring.setUpdateTime(DateUtils.getNowDate());
        return slopeAiHljSlopeMonitoringMapper.updateSlopeAiHljSlopeMonitoring(slopeAiHljSlopeMonitoring);
    }

    /**
     * 批量删除黑龙江省公路边坡崩塌落石监控
     * 
     * @param ids 需要删除的黑龙江省公路边坡崩塌落石监控主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiHljSlopeMonitoringByIds(Long[] ids)
    {
        return slopeAiHljSlopeMonitoringMapper.deleteSlopeAiHljSlopeMonitoringByIds(ids);
    }

    /**
     * 删除黑龙江省公路边坡崩塌落石监控信息
     * 
     * @param id 黑龙江省公路边坡崩塌落石监控主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiHljSlopeMonitoringById(Long id)
    {
        return slopeAiHljSlopeMonitoringMapper.deleteSlopeAiHljSlopeMonitoringById(id);
    }
}
